{strip}

{literal}
<script>

$(document).ready(function() { 
	var options = { 
        beforeSubmit:  showRequest,  // pre-submit callback 
        success:       showResponse  // post-submit callback 
    }; 
 
    // bind to the form's submit event 
    $('#currency_add_form').submit(function() { 
    	//fakeSubmit.UpdateEditorFormValue();
        $(this).ajaxSubmit(options); 
 
        // !!! Important !!! 
        // always return false to prevent standard browser submit and page navigation 
        //checkForm();
        return false;
    });
});

// pre-submit callback 
function showRequest(formData, jqForm, options) { 
    var queryString = $.param(formData); 
    //return checkForm(); 
} 
 
// post-submit callback 
function showResponse(responseText, statusText)  { 
	//scroll(0,0);
	//showPopup2(responseText, 'New default matrix', false);
	window.location.reload();
}
</script>
{/literal}

<div id="backoffice" >
<table align="center"><tr><td>
<form id="currency_add_form" method="POST" action="/currency/save" onsubmit="">

<fieldset>
<legend>Fill the form</legend>

	<div>
		<label for="f4">Currency</label>
		<input type="text" name="addForm[currency]" value="" />
		<input type="hidden" name="addForm[currencyId]" value="0" />
	</div>
	<div>
		<label>Currency Entity Code</label>
		<input type="text" name="addForm[currencyEntity]" value="" />
	</div>	
	<div>
		<label>Currency Shortcut</label>
		<input type="text" name="addForm[currencyShortcut]" value="" />
	</div>
	
	<div class="v_spacer"> </div>
	<div>
		<div class="left">
			<input type="button" value="Resign" class="submit" onclick="closePopup();"/>
		</div>
		<div class="right">
			<input type="submit" value="Submit" class="submit"/>
		</div>
	</div>

	
</fieldset>
</form>
</td></tr></table>
</div>
{/strip}